package com.kws.payment.dao;

import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * <b>CreateAppUnionPayOrderRq</b>
 *
 * @description: CreateAppUnionPayOrderRq <br>
 * @date: 2024/12/25 09:31 <br>
 * @author: lhm <br>
 * @version: 1.0 <br>
 */
public class CreateAppUnionPayOrderRq {
    @ApiModelProperty(value = "订单号",required = true)
    private String orderNo;

    @ApiModelProperty(value = "支付总金额 单位分",required = true)
    private Integer totalAmount;

    @ApiModelProperty(value = "商品信息",required = true)
    private List<GoodsRq> goods;

    @ApiModelProperty(value = "订单过期时间 为空则使用系统默认过期时间（30分钟），格式yyyy-MM-dd HH:mm:ss")
    private String expireTime;

    @ApiModelProperty(value = "账单描述")
    private String orderDesc;

    @ApiModelProperty(value = "订单展示页面")
    private String showUrl;

    @ApiModelProperty(value = "子订单信息 在传分账标记的情况下，若传子商户号，子商户分账金额必传，即ubOrders每个元素的mid和totalAmount非空且mid不超过20",required = true)
    private List<SubOrdersRq> subOrders;

    @ApiModelProperty(value = "交易类型 微信必传:APP")
    private String tradeType;

    @ApiModelProperty(value = "商户用户号 applepay下单时 必传")
    private String merchantUserId;

    @ApiModelProperty(value = "指定支付方式 商户可通过上传该字段，指定想要支持的支付方式(仅支持支付宝交易)。 一笔订单中仅允许商户一次上送一个值，可上送的取值范围为：balance（余额），moneyFund（余额宝），pcredit（花呗），pcreditpayInstallment（花呗分期），creditCard（信用卡），debitCardExpress（借记卡）")
    private String enablePayChnl;


    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Integer totalAmount) {
        this.totalAmount = totalAmount;
    }

    public List<GoodsRq> getGoods() {
        return goods;
    }

    public void setGoods(List<GoodsRq> goods) {
        this.goods = goods;
    }

    public String getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(String expireTime) {
        this.expireTime = expireTime;
    }

    public String getOrderDesc() {
        return orderDesc;
    }

    public void setOrderDesc(String orderDesc) {
        this.orderDesc = orderDesc;
    }

    public String getShowUrl() {
        return showUrl;
    }

    public void setShowUrl(String showUrl) {
        this.showUrl = showUrl;
    }

    public List<SubOrdersRq> getSubOrders() {
        return subOrders;
    }

    public void setSubOrders(List<SubOrdersRq> subOrders) {
        this.subOrders = subOrders;
    }

    public String getTradeType() {
        return tradeType;
    }

    public void setTradeType(String tradeType) {
        this.tradeType = tradeType;
    }

    public String getMerchantUserId() {
        return merchantUserId;
    }

    public void setMerchantUserId(String merchantUserId) {
        this.merchantUserId = merchantUserId;
    }

    public String getEnablePayChnl() {
        return enablePayChnl;
    }

    public void setEnablePayChnl(String enablePayChnl) {
        this.enablePayChnl = enablePayChnl;
    }
}
